/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "采购详情表",TableName = "PurchaseProductDetails")]
    public partial class PurchaseProductDetails:BaseEntity
    {
        /// <summary>
       ///采购产品详情编号
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="采购产品详情编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Required(AllowEmptyStrings=false)]
       public string ProcurementId { get; set; }

       /// <summary>
       ///产品数量
       /// </summary>
       [Display(Name ="产品数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ProductNum { get; set; }

       /// <summary>
       ///产品总价
       /// </summary>
       [Display(Name ="产品总价")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ProductTotal { get; set; }

       /// <summary>
       ///采购编号
       /// </summary>
       [Display(Name ="采购编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string PurchaseId { get; set; }

       /// <summary>
       ///产品编号
       /// </summary>
       [Display(Name ="产品编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Required(AllowEmptyStrings=false)]
       public string ProductId { get; set; }

       /// <summary>
       ///产品名称
       /// </summary>
       [Display(Name ="产品名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string ProductName { get; set; }

       /// <summary>
       ///规格
       /// </summary>
       [Display(Name ="规格")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Specification { get; set; }

       /// <summary>
       ///单价
       /// </summary>
       [Display(Name ="单价")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Unit { get; set; }

       
    }
}